// +----------------------------------------------------------------------
// | CRMEB [ CRMEB赋能开发者，助力企业发展 ]
// +----------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +----------------------------------------------------------------------
// | Author: CRMEB Team <admin@crmeb.com>
// +----------------------------------------------------------------------
import Layout from '@/layout'
import { roterPre } from '@/settings'

const businesRouter =
  {
    path: `${roterPre}/busines`,
    name: 'busines',
    meta: {
      title: '名片'
    },
    alwaysShow: true,
    component: Layout,
    redirect: `${roterPre}/busines`,
    children: [
      {
        path: 'tjList',
        name: 'tjList',
        meta: {
          title: '代理统计',
          // noCache: true
        },
        // redirect: 'noRedirect',
        component: () => import('@/views/busines/compay/tjList')
      },
      {
        path: 'buss',
        name: 'buss',
        meta: {
          title: '名片管理'
          // noCache: true
        },
        // redirect: 'noRedirect',
        component: () => import('@/views/busines/buss/index')
      },
      {
        path: 'video',
        name: `video`,
        meta: {
          auth: ['busines-video'],
          title: '视频管理'
        },
        component: () => import('@/views/busines/video/index')

      },
      {
        path: 'article',
        name: `article`,
        meta: {
          auth: ['busines-video'],
          title: '文章管理'
        },
        component: () => import('@/views/busines/article/index')

      },
      {
        path: 'article/addArticle',
        name: `addArticle`,
        meta: {
          auth: ['busines-video'],
          title: '文章管理'
        },
        component: () => import('@/views/busines/addArticle/index')

      },
      {
        path: 'video/addVideo',
        name: `addVideo`,
        meta: {
          auth: ['busines-video'],
          title: '视频管理'
        },
        component: () => import('@/views/busines/addVideo/index')

      },
      {
        path: 'custlist',
        name: `custlist`,
        meta: {
          auth: ['busines-custlist'],
          title: '员工交接'
        },
        component: () => import('@/views/busines/custlist/custlist')
      },
      {
        path: 'merinfor',
        name: `merinfor`,
        meta: {
          auth: ['busines-merinfor'],
          title: '客户列表'
        },
        component: () => import('@/views/busines/merinfor/staff')
      },
      {
        path: 'officialWebsite',
        name: `officialWebsite`,
        meta: {
          auth: ['busines-officialWebsite'],
          title: '官网'
        },
        component: () => import('@/views/busines/officialWebsite/index')
      },
      {
        path: 'setbuss',
        name: `setbuss`,
        meta: {
          auth: ['busines-setbuss'],
          title: '免审口令'
        },
        component: () => import('@/views/busines/setbuss/index')
      },
      {
        path: 'setphon',
        name: `setphon`,
        meta: {
          auth: ['busines-setphon'],
          title: '移动端设置'
        },
        component: () => import('@/views/busines/setphon/index')
      },
      {
        path: 'jurisdictionAdmin',
        name: `jurisdictionAdmin`,
        meta: {
          auth: ['busines-jurisdictionAdmin'],
          title: '权限管理'
        },
        component: () => import('@/views/busines/jurisdictionAdmin/index')
      },
      {
        path: 'cardMould',
        name: `cardMould`,
        meta: {
          auth: ['busines-cardMould'],
          title: '名片模板'
        },
        component: () => import('@/views/busines/cardMould/index')
      },
      {
        path: 'cardLabel',
        name: `cardLabel`,
        meta: {
          auth: ['busines-cardLabel'],
          title: '名片签名'
        },
        component: () => import('@/views/busines/cardLabel/index')
      },
      {
        path: 'CRM',
        name: `CRM`,
        meta: {
          auth: ['busines-CRM'],
          title: 'CRM'
        },
        component: () => import('@/views/busines/CRM/index')
      },
      {
        path: 'cardDiy',
        name: 'cardDiy',
        meta: {
          title: '名片装修',
        },
        component: () => import('@/views/busines/cardDiy/list')
      },
      {
        path: 'cardDiy/index',
        name: 'cardDiyIndex',
        meta: {
          title: '名片装修',
          noCache: true,
          activeMenu: `${roterPre}/cardDiy/list`
        },
        component: () => import('@/views/busines/cardDiy/index')
        
      },
    ]
  }
export default businesRouter
